package com.dhx.service;

import com.dhx.dao.LeaveStudentDao;
import com.dhx.dao.impl.LeaveStudentDaoImpl;
import com.dhx.pojo.LeaveStudent;

import java.util.List;

public class InfoServiceImpl implements InfoService {
    private LeaveStudentDao leaveStudent =new LeaveStudentDaoImpl();
    @Override
    public int addInfo(LeaveStudent student) {
        return leaveStudent.addInfo(student);
    }

    @Override
    public int deleteInfoById(String no) {
        return leaveStudent.deleteInfoById(no);
    }

    @Override
    public int updateInfo(LeaveStudent student) {
        return leaveStudent.updateInfo(student);
    }

    @Override
    public LeaveStudent queryInfoById(String no) {
        return leaveStudent.queryInfoById(no);
    }

    @Override
    public List<LeaveStudent> queryInfoes() {
        return leaveStudent.queryInfoes();
    }
}
